makeAccessible

open fun makeAccessible(publicTypes: Array<Class<out Any>>)

Adds the publicTypes to the types that are accessible from JavaScript.

Only public classes and interfaces are allowed as an argument. Passing an enum or an annotation type results in NotSupportedTypeException.

Parameters

publicTypes

the types to be made accessible

Throws

if a type in the publicTypes array is an enum or an annotation

if the publicTypes array contains a type without the public modifier